package cn.mesmile.multiple;

/**
 * @author zb
 * @date 2021/2/24 16:58
 * @Description
 */
public class Food {

    {
        System.load("D:\\IdeaProjects\\xdclass-cloud\\xdclass-native\\src\\main\\java\\cn\\mesmile\\multiple\\Food.dll");
    }

    public Food(double price) {
        setFoodParam(price);
    }

    public native void setFoodParam(double price);

    public native double getPrice();

    public static void main(String[] args) {
        Food food = new Food(123.06);
        System.out.println("food.getPrice() = " + food.getPrice());
    }

}
